package jwj8508.oop;

public class J31_AccountService implements J31_AccountInterface {

	@Override
	public float getMonthlyInterestRate(float interestRate) {
		return interestRate/12;
	}

	@Override
	public int withDraw(J31_AccountVO avo, int money) {
		avo.setBalance(avo.getBalance()-money);
		return avo.getBalance();
	}

	@Override
	public int deposit(J31_AccountVO avo, int money) {
		avo.setBalance(avo.getBalance()+money);
		return avo.getBalance();
	}
	
}
